package com.zzy.librarytest.service.impl;

import com.zzy.librarytest.dao.ReturnRecordDao;
import com.zzy.librarytest.entity.Record;
import com.zzy.librarytest.service.ReturnRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ReturnRecordServiceImpl implements ReturnRecordService {
    @Autowired
    private ReturnRecordDao returnRecordDao;
    @Override
    public Record selectOneReturnRecord(Integer id) {
        return returnRecordDao.selectOneReturnRecord(id);
    }

    @Override
    public List<Record> selectAllReturnRecord() {
        return returnRecordDao.selectAllReturnRecord();
    }

    @Override
    public Integer insertReturnRecord(Record record) {
        return returnRecordDao.insertReturnRecord(record);
    }

    @Override
    public Integer deleteReturnRecord(Integer id) {
        return returnRecordDao.deleteReturnRecord(id);
    }

    @Override
    public Integer updateReturnRecord(Record record) {
        return returnRecordDao.updateReturnRecord(record);
    }
}
